Skip to content

Add missing block tags to regex (#620) #622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 19, 2025

Conversation

Crozzers
Copy link
Contributor

This PR fixes #620 by adding missing block tags to the block tags regex.

Smarty-pants was mangling quotes in the video element, which should be hashed by _hash_html_blocks, but video was missing from _html5tags and _block_tags_a. Adding it fixed this.

I also added a bunch of other block-level tags listed on w3docs such as canvas, dd, dt and address

@nicholasserra nicholasserra merged commit 5a2b945 into trentm:master Mar 19, 2025
15 checks passed
@nicholasserra
Copy link
Collaborator

LGTM Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

smarty-pants mangles quotes in html
2 participants